var JsonError = iClass.set(function(errorMsg) {
	this.errorCode = $$.md5(String(errorMsg)).substr(0, 5).toInt(16);
	this.errorMsg = errorMsg;
	this.errorTime = +new Date;
});
JsonError.prototype = {
	toString: function() {
		try {
			var result = JSON.stringify(this);
		} catch (e) {
			result = JSON.stringify(e.message);
		}
		return result;
	}
}
module.exports = JsonError;